<{include file="public/header.html"}>
<!--提问单页面-->
	<div class="w1180-con mt20">
		<div class="post-article fl">
			<div class="title">
				<p class="title-big">曝光标题</p>
				<div class="title-box">
					<input type="text" name="wenda_title" id="wenda_title" value="" placeholder="标题不少于5个字哦"/>
				</div>
				<i class="mt5"><span class="title-count error">0</span>/50&nbsp;字</i>
			</div>
			<div class="con mt20">
				<p class="title-big">曝光内容</p>
				<div class="wd-content">
					<div class="wd-operate">
                                            <a href="javascript:void(0);" class="up-picture-btn"><b class="icon-com icon-adphoto"></b>添加图片</a>
					</div>
					<div class="enter-content">
                        <div style="display: block;" class="enter-txt editor-placeholder">
                            <div class="p10">
                            		请填写你的内容~~
                            </div>
                        </div>
                        <textarea style="display: none;" name="wenda_content" id="wenda_content" placeholder=""></textarea>
                        <div style="display: inline-block;" class="please-enter wenda-editor" contenteditable="true"></div>
					</div>
				</div>
                                <i class="mt5"><span class="content-count error">0</span>&nbsp;字</i>
			</div>
			<div class="label mt20">
                            <p class="mb10">曝光标签</p>
                            <div class="label-list" id="wenda_tags_box">
                                <{foreach from=$tags item=val}>
                                <a href="javascript:void(0);" data-name="<{$val['name']}>" data-tid="<{$val['id']}>"><{$val['name']}></a>
                                <{/foreach}>
                            </div>
                            <span class="fl add-btn mr10" style="margin-top: 1px;">+</span>
                            <div class="label-input fl">
                                    <input type="text" name="key_tag" id="seach_wenda_key_tag" placeholder="添加标签" />
                                    <div class="input-all bjf" id="seach_wenda_tag_box" style="display:none;"></div>
                            </div>
                            <div class="clear"></div>
                            <div id="wenda_tags_error" style="display:none;"><label class="error f12">我们只接受5个标签哦~</label></div>
			</div>
			<div class="tip-mail mt30">
				<div class="checkbox" id="email_notice_select"></div>
                                收到回复后邮箱提醒我<{if $user_email}><a href="<{eval finance_url('user/security')}>#change-email" target="_blank"><{$user_email}>（更改）</a><{else}><a href="<{eval finance_url('user/security')}>#change-email" target="_blank">（还没有绑定邮箱去设置）</a><{/if}>
			</div>
			<div class="post-btn mt20">
                            <input class="release fr ml20 _T_wenda_publish" type="submit" value="我要曝光" data-action-url="<{eval url('exposure/add')}>" data-unvalid="发布中..."/>
			</div>
		</div>
		<div class="side-area fr" style="width: 320px;">
			<div class="text-tip">
				<p class="title-big">提问姿势</p>
				<div class="con">
					<p>1. 问题要【具体】【真实】【诚恳】，问题较多，需全面阐述时，可以添加问题补充。例如：问题发生的背景，贴上相关图/数据等。</p>
					<p>2. 给问题添加标签将有助于更快地获得回答。</p>
				</div>
			</div>
                        <{if $hot_wendas}>
			<div class="hot mt30">
                            <p class="title-big">热门问题</p>
                            <ul>
                                <{foreach from=$hot_wendas item=val}>
                                <li>
                                    <a href="<{$val['wenda_url']}>"><{$val['title']}></a><i>&nbsp;<{$val['answernum']}>&nbsp;回答</i>
                                </li>
                                <{/foreach}>
                            </ul>
			</div>
                        <{/if}>
		</div>
		<div class="clear"></div>
	</div>
    <script type="text/javascript">
        $(function(){
            if('<{$login}>' == '1'){
                showLogin('login');return;
            }else{
                if('<{$mobile}>'=='0'){
                    layer.msg("发布问答前请到官网个人中心填写手机号!",{icon:0,offset:300,time:2000},function(){window.location.href='/user/security.html#change-phone'});
                }else{
                    if("<{$cate_code}>" == "" || "<{$sec_cate_code}>" == "" ){
                        $(".popup-post").fadeIn();
                        $(".popup").fadeIn();
                    }
                }
            }
            $('.post-article .label .add-btn').on('click',function(){
                $(this).parents('.label').find('.label-input').toggle(500);
            });
            $('.post-article .tip-mail .checkbox').on('click',function(){
                $(this).hasClass('active') ? $(this).removeClass('active') : $(this).addClass('active');
            });
        });
    </script>
     <script type="text/javascript" src="<{$style_dir}>/js/post.wenda.js"></script>

<{include file="public/footer.html"}>